/**
 * 创建html文件
 * @author li.xiaomei
 * @date 2017-02-24
 * 
 */
var fs = require('fs');
module.exports = function(name){
	name = name||'test.html';
	
	var tpl = fs.readFileSync(__dirname+'/htmlTemplate.html', {
		encoding: 'utf-8'
	});

	fs.writeFile(name, tpl, function(err) {
	   if(err) return;
	});

    console.log('【创建文件' + name)
}